import request from '@/utils/request'

export function list(data) {
  return request({
    url: '/device/repair/report/list',
    method: 'post',
    data: data
  })
}

export function addOrUpdate(data) {
  return request({
    url: '/device/repair/report/addOrEdit',
    method: 'post',
    data: data
  })
}
export function getUsersByRoleId(data) {
  return request({
    url: '/system/user/getUsersByRoleId',
    method: 'post',
    data: data
  })
}
export function getInfo(data) {
  return request({
    url: '/device/repair/report/' + data,
    method: 'get'
  })
}
export function remove(data) {
  return request({
    url: '/device/repair/report/delete',
    method: 'post',
    data: { deleteIds: data }
  })
}

export function equipmentInfolist(data) {
  return request({
    url: '/device/basicInformation/standingBook/list',
    method: 'post',
    data: data
  })
}

export function personnellist(data) {
  return request({
    url: '/device/basicInformation/maintenance/maintenanceUserList',
    method: 'post',
    data: data
  })
}

export function getTypelist(data) {
  return request({
    url: '/device/repair/type/list',
    method: 'post',
    data: data
  })
}
export function getNamelist(data) {
  return request({
    url: '/device/basicInformation/standingBook/list',
    method: 'post',
    data: data
  })
}

